package PTA_JAVA.JavaBase.JavaBase14;

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int handrand=a/100;
        int fifty=(a%100)/50;
        int twenty=((a%100)%50)/20;
        int ten=(((a%100)%50)%20)/10;
        int five=((((a%100)%50)%20)%10)/5;
        int two=(((((a%100)%50)%20)%10)%5)/2;
        int one=(((((a%100)%50)%20)%10)%5)%2;

        System.out.printf("100元:%3d张\n",handrand);
        System.out.printf(" 50元:%3d张\n",fifty);
        System.out.printf(" 20元:%3d张\n",twenty);
        System.out.printf(" 10元:%3d张\n",ten);
        System.out.printf("  5元:%3d张\n",five);
        System.out.printf("  2元:%3d张\n",two);
        System.out.printf("  1元:%3d张\n",one);
    }
}
